package com.wanxi.product.mapper;

import com.wanxi.product.service.api.entity.Spu;
import com.wanxi.product.service.api.query.enterprise.SpuQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SpuMapper {
    int add(Spu spu);

    Spu findById(Long spuId);

    List<Spu> findAll(SpuQuery spuQuery);

    int update(Spu spu);

    int delete(Long spuId);
}
